<%@include file="common/common.jsp" %>
<%
String rkey = request.getParameter("key");
String rtype = request.getParameter("type");
String oldKey = request.getParameter("old");

%>
<!DOCTYPE html>
<html lang=en>
<head>
<meta charset=utf-8>

<meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
<meta name=format-detection content="telephone=no">

<meta name=robots content="noindex,nofollow,noarchive">

<meta name=author content="https://github.com/ErikDubbelboer/">

<title></title>

<link rel=stylesheet href="css/common.css?v1-1-1" media=all>
<link rel=stylesheet href="css/frame.css?v1-1-1" media=all>

<link rel="shortcut icon" href="images/favicon.png">

<script src="js/jquery.js?v1-1-1"></script>
<script src="js/frame.js?v1-1-1"></script>
<%
if(!isNull(oldKey) && !"".equals(oldKey)) {
	jedis.rename(oldKey, rkey);
 %>
<script>
  top.location.href = top.location.pathname+'?view&s='+"<%=selectServer%>"+'&key='+"<%=haiyaoyige(rkey)%>";
  </script>
 <%} %>
</head>
<body>
<h2>Edit Name of <%=haiyaoyige(rkey) %></h2>
<form action="rename.jsp" method="post">
<input type="hidden" name="s" value="<%=selectServer%>" />

<input type="hidden" name="old" value="<%=haiyaoyige(rkey)%>" />

<p>
<label for="key">Key:</label>
<input type="text" name="key" id="key" size="30" value="<%=haiyaoyige(rkey)%>"/>
</p>

<p>
<input type="submit" class="button" value="Rename">
</p>

</form>

</body></html>